<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<table id="table_expertWork"></table>
<script>
    var $table_expertWork = $('#table_expertWork');
    $table_expertWork.bootstrapTable({
        data:${data},
        striped: true,
        height:272,
        columns: [
            {
                formatter: function (value, row, index) {
                    return index + 1;
                }
            },
            {
                field: 'startTime',
                title: '开始时间',
                formatter: function (value, row, index) {
                    return [$.sysPlugin.int2DateString(value)].join('');
                }
            },
            {
                field: 'endTime',
                title: '结束时间',
                formatter: function (value, row, index) {
                    if (value == undefined || value == "") {
                        return "至今";
                    }
                    return [
                        $.sysPlugin.int2DateString(value)
                    ].join('');
                }
            },
            {
                halign:'center',
                align:'left',
                width:250,
                field: 'name',
                title: '单位名称'
            },
            {
                halign:'center',
                align:'left',
                width:250,
                field: 'content',
                title: '从事内容'
            },
            {
                field: 'rank',
                title: '职称'
            }
        ]
    });
</script>